<%@ page import="activity.Event" %>
<!doctype html>
<html>
	<head>
        <meta name="layout" content="backend">
        <g:set var="entityName" value="${message(code: 'event.label', default: 'Event')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
        <div class="gnav" role="navigation">
            <ul>
                <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
                <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
            </ul>
        </div>
        <div id="show-event" class="content scaffold-show" role="main">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message" role="status">${flash.message}</div>
            </g:if>
            <ol class="property-list event">
            
                <g:if test="${eventInstance?.serial}">
                <li class="fieldcontain">
                    <label for="serial"><g:message code="event.serial.label"/></label>
                    <f:display bean="eventInstance" property="serial" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.kind}">
                <li class="fieldcontain">
                    <label for="kind"><g:message code="event.kind.label"/></label>
                    <f:display bean="eventInstance" property="kind" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.name}">
                <li class="fieldcontain">
                    <label for="name"><g:message code="event.name.label"/></label>
                    <f:display bean="eventInstance" property="name" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.audience}">
                <li class="fieldcontain">
                    <label for="audience"><g:message code="event.audience.label"/></label>
                    <f:display bean="eventInstance" property="audience" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.dateStart}">
                <li class="fieldcontain">
                    <label for="dateStart"><g:message code="event.dateStart.label"/></label>
                    <f:display bean="eventInstance" property="dateStart" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.dateEnd}">
                <li class="fieldcontain">
                    <label for="dateEnd"><g:message code="event.dateEnd.label"/></label>
                    <f:display bean="eventInstance" property="dateEnd" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.place}">
                <li class="fieldcontain">
                    <label for="place"><g:message code="event.place.label"/></label>
                    <f:display bean="eventInstance" property="place" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.intro}">
                <li class="fieldcontain">
                    <label for="intro"><g:message code="event.intro.label"/></label>
                    <f:display bean="eventInstance" property="intro" />
                </li>                
                </g:if>
                
                <g:if test="${eventInstance?.cohost}">
                    <li class="fieldcontain">
                        <label for="cohost"><g:message code="event.cohost.label"/></label>
                    <f:display bean="eventInstance" property="cohost" />
                </li>                
                </g:if>

                <g:if test="${eventInstance?.partner}">
                <li class="fieldcontain">
                    <label for="partner"><g:message code="event.partner.label"/></label>
                    <f:display bean="eventInstance" property="partner" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.files}">
                <li class="fieldcontain">
                    <label for="files"><g:message code="event.files.label"/></label>
                    <g:link url="${createLinkTo(file:''+eventInstance.files)}">${eventInstance.files}</g:link>
                    <!--<img src="${createLinkTo(file:''+eventInstance.files)}" title="${eventInstance.files}" />-->
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.memo}">
                <li class="fieldcontain">
                    <label for="memo"><g:message code="event.memo.label"/></label>
                    <f:display bean="eventInstance" property="memo" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.custom1}">
                <li class="fieldcontain">
                    <label for="custom1"><g:message code="event.custom1.label"/></label>
                    <f:display bean="eventInstance" property="custom1" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.custom2}">
                <li class="fieldcontain">
                    <label for="custom2"><g:message code="event.custom2.label"/></label>
                    <f:display bean="eventInstance" property="custom2" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.regFee}">
                <li class="fieldcontain">
                    <label for="regFee"><g:message code="event.regFee.label"/></label>
                    <f:display bean="eventInstance" property="regFee" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.capacityQty}">
                <li class="fieldcontain">
                    <label for="capacityQty"><g:message code="event.capacityQty.label"/></label>
                    <f:display bean="eventInstance" property="capacityQty" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.standbyQty}">
                <li class="fieldcontain">
                    <label for="standbyQty"><g:message code="event.standbyQty.label"/></label>
                    <f:display bean="eventInstance" property="standbyQty" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.registerQty}">
                <li class="fieldcontain">
                    <label for="registerQty"><g:message code="event.registerQty.label"/></label>
                    <f:display bean="eventInstance" property="registerQty" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.checkInQty}">
                <li class="fieldcontain">
                    <label for="checkInQty"><g:message code="event.checkInQty.label"/></label>
                    <f:display bean="eventInstance" property="checkInQty" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.registerHigh}">
                <li class="fieldcontain">
                    <label for="registerHigh"><g:message code="event.registerHigh.label"/></label>
                    <f:display bean="eventInstance" property="registerHigh" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.registerLow}">
                <li class="fieldcontain">
                    <label for="registerLow"><g:message code="event.registerLow.label"/></label>
                    <f:display bean="eventInstance" property="registerLow" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.regStart}">
                <li class="fieldcontain">
                    <label for="regStart"><g:message code="event.regStart.label"/></label>
                    <f:display bean="eventInstance" property="regStart" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.regEnd}">
                <li class="fieldcontain">
                    <label for="regEnd"><g:message code="event.regEnd.label"/></label>
                    <f:display bean="eventInstance" property="regEnd" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.registerOnly}">
                <li class="fieldcontain">
                    <label for="registerOnly"><g:message code="event.registerOnly.label"/></label>
                    <f:display bean="eventInstance" property="registerOnly" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.checkIn}">
                <li class="fieldcontain">
                    <label for="checkIn"><g:message code="event.checkIn.label"/></label>
                    <f:display bean="eventInstance" property="checkIn" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.checkInStart}">
                <li class="fieldcontain">
                    <label for="checkInStart"><g:message code="event.checkInStart.label"/></label>
                    <f:display bean="eventInstance" property="checkInStart" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.checkInEnd}">
                <li class="fieldcontain">
                    <label for="checkInEnd"><g:message code="event.checkInEnd.label"/></label>
                    <f:display bean="eventInstance" property="checkInEnd" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.isAudit}">
                <li class="fieldcontain">
                    <label for="isAudit"><g:message code="event.isAudit.label"/></label>
                    <f:display bean="eventInstance" property="isAudit" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.isFood}">
                <li class="fieldcontain">
                    <label for="isFood"><g:message code="event.isFood.label"/></label>
                    <f:display bean="eventInstance" property="isFood" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.isSleep}">
                <li class="fieldcontain">
                    <label for="isSleep"><g:message code="event.isSleep.label"/></label>
                    <f:display bean="eventInstance" property="isSleep" />
                </li>                
                </g:if>
            
                <g:if test="${eventInstance?.isCancel}">
                <li class="fieldcontain">
                    <label for="isCancel"><g:message code="event.isCancel.label"/></label>
                    <f:display bean="eventInstance" property="isCancel" />
                </li>                
                </g:if>

                <g:if test="${eventInstance?.certiScore}">
                    <li class="fieldcontain">
                        <label for="certiScore"><g:message code="event.certiScore.label"/></label>
                    <f:display bean="eventInstance" property="certiScore" />
                </li>                
        </g:if>

        <g:if test="${eventInstance?.schalarScore}">
            <li class="fieldcontain">
                <label for="schalarScore"><g:message code="event.schalarScore.label"/></label>
            <f:display bean="eventInstance" property="schalarScore" />
        </li>                
        </g:if>

        <g:if test="${eventInstance?.unit}">
            <li class="fieldcontain">
                <label for="unit"><g:message code="event.unit.label"/></label>
            <f:display bean="eventInstance" property="unit" />
        </li>                
        </g:if>

        <g:if test="${eventInstance?.courseCode}">
            <li class="fieldcontain">
                <label for="courseCode"><g:message code="event.courseCode.label"/></label>
            <f:display bean="eventInstance" property="courseCode" />
        </li>                
        </g:if>

        <g:if test="${eventInstance?.virtualHour}">
            <li class="fieldcontain">
                <label for="virtualHour"><g:message code="event.virtualHour.label"/></label>
            <f:display bean="eventInstance" property="virtualHour" />
        </li>                
        </g:if>

        <g:if test="${eventInstance?.realHour}">
            <li class="fieldcontain">
                <label for="realHour"><g:message code="event.realHour.label"/></label>
            <f:display bean="eventInstance" property="realHour" />
        </li>                
        </g:if>

        <g:if test="${eventInstance?.county}">
            <li class="fieldcontain">
                <label for="county"><g:message code="event.county.label"/></label>
            <f:display bean="eventInstance" property="county" />
        </li>                
        </g:if>

        <g:if test="${eventInstance?.studyType}">
            <li class="fieldcontain">
                <label for="studyType"><g:message code="event.studyType.label"/></label>
            <f:display bean="eventInstance" property="studyType" />
        </li>                
        </g:if>

            </ol>
            <g:form>
                <fieldset class="buttons">
                    <g:hiddenField name="id" value="${eventInstance?.id}" />
                    <g:link class="edit" action="edit" id="${eventInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
                    <g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
                </fieldset>
            </g:form>
        </div>
	</body>
</html>